From 214abecaa33cef50fbbd53e32b943d17c1cbff7b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Jul 2010 16:46:49 +0100 Subject: [PATCH] xl: start numbering vifs from 0 Signed-off-by: Stefano Stabellini --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 2d5638f2ad..e6c2e4bb5d 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -688,7 +688,7 @@ static void parse_config_data(const char *configfile_filename_report, char *buf2 = strdup(buf); char *p, *p2; *vifs = (libxl_device_nic *) realloc(*vifs, sizeof (libxl_device_nic) * ((*num_vifs) + 1)); - init_nic_info((*vifs) + (*num_vifs), (*num_vifs) + 1); + init_nic_info((*vifs) + (*num_vifs), (*num_vifs)); p = strtok(buf2, ","); if (!p) goto skip; -- 2.30.2